package com.alvin.abp.common.constant;

public enum UserRoleType {
	ROLE_ADMIN("\u7ba1\u7406\u5458"), 
	ROLE_MEMBER("\u4f1a\u5458"),
	ROLE_ANONYMOUS("\u8bbf\u95ee\u4eba\u5458");
	private String displayName;

	UserRoleType(String displayName) {
		this.displayName = displayName;
	}

	public String getName() {
		return this.name();
	}

	public static UserRoleType enumFor(String value) {
		try {
			return UserRoleType.valueOf(value);
		} catch (Exception e) {
			return null;
		}
	}
	public String getDisplayName(){
		return this.displayName;
	}
}
